﻿#ifndef SUBCOMPONENT_H
#define SUBCOMPONENT_H

#include <QVector>

#include "abstractcomponent.h"

class SubComponent : public AbstractComponent
{
public:
    explicit SubComponent(QString name);

    void operation(int level = 0) override;

    void add(AbstractComponent* component) override;

    void remove(AbstractComponent* component) override;

    AbstractComponent* getComponent(int i) override;

private:
    QVector<AbstractComponent*> m_componentVector;
};

#endif // SUBCOMPONENT_H
